package behavior.observer;

/**
 * @author dali
 * @date 2021-07-26 16:25
 * @Description
 */

public class ConcreteSubject extends Subject {
    @Override
    public void notifyObserver() {
        System.out.println("目标对象状态发生改变，通知给所有观察者！");

        for (Observer o : list) {
            o.response();
        }
    }
}
